<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="LancamentosDiariosEditDlg" widgetVar="LancamentosDiariosEditDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.EditLancamentosDiariosTitle}">
            <h:form id="LancamentosDiariosEditForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{lancamentosDiariosController.selected != null}">
                        <p:outputLabel value="#{bundle.EditLancamentosDiariosLabel_id}" for="id" />
                        <p:inputText id="id" value="#{lancamentosDiariosController.selected.id}" title="#{bundle.EditLancamentosDiariosTitle_id}" required="true" requiredMessage="#{bundle.EditLancamentosDiariosRequiredMessage_id}"/>
                        <p:outputLabel value="#{bundle.EditLancamentosDiariosLabel_data}" for="data" />
                        <p:calendar id="data" pattern="MM/dd/yyyy" value="#{lancamentosDiariosController.selected.data}" title="#{bundle.EditLancamentosDiariosTitle_data}" required="true" requiredMessage="#{bundle.EditLancamentosDiariosRequiredMessage_data}" showOn="button"/>
                        <p:outputLabel value="#{bundle.EditLancamentosDiariosLabel_tipoLancamento}" for="tipoLancamento" />
                        <p:inputText id="tipoLancamento" value="#{lancamentosDiariosController.selected.tipoLancamento}" title="#{bundle.EditLancamentosDiariosTitle_tipoLancamento}" required="true" requiredMessage="#{bundle.EditLancamentosDiariosRequiredMessage_tipoLancamento}"/>
                        <p:outputLabel value="#{bundle.EditLancamentosDiariosLabel_valor}" for="valor" />
                        <p:inputText id="valor" value="#{lancamentosDiariosController.selected.valor}" title="#{bundle.EditLancamentosDiariosTitle_valor}" required="true" requiredMessage="#{bundle.EditLancamentosDiariosRequiredMessage_valor}"/>
                        <p:outputLabel value="#{bundle.EditLancamentosDiariosLabel_historico}" for="historico" />
                        <p:inputText id="historico" value="#{lancamentosDiariosController.selected.historico}" title="#{bundle.EditLancamentosDiariosTitle_historico}" required="true" requiredMessage="#{bundle.EditLancamentosDiariosRequiredMessage_historico}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{lancamentosDiariosController.update}" value="#{bundle.Save}" update="display,:LancamentosDiariosListForm:datalist,:growl" oncomplete="handleSubmit(args, 'LancamentosDiariosEditDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="LancamentosDiariosEditDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
